<?php

/**
 * User form base class.
 *
 * @package    form
 * @subpackage user
 * @version    SVN: $Id: sfPropelFormGeneratedTemplate.php 15484 2009-02-13 13:13:51Z fabien $
 */
class BaseUserForm extends BaseFormPropel
{
  public function setup()
  {
    $this->setWidgets(array(
      'id'                    => new sfWidgetFormInputHidden(),
      'name'                  => new sfWidgetFormInput(),
      'lypo_signature'        => new sfWidgetFormInput(),
      'thumbnail_url'         => new sfWidgetFormInput(),
      'city'                  => new sfWidgetFormInput(),
      'country'               => new sfWidgetFormInput(),
      'gender'                => new sfWidgetFormInput(),
      'age'                   => new sfWidgetFormInput(),
      'keywords'              => new sfWidgetFormTextarea(),
      'origin'                => new sfWidgetFormInput(),
      'enemy'                 => new sfWidgetFormInput(),
      'occupation'            => new sfWidgetFormInput(),
      'cached_statement_text' => new sfWidgetFormTextarea(),
      'cached_reaction_text'  => new sfWidgetFormTextarea(),
      'cached_statement_id'   => new sfWidgetFormInput(),
      'num_respects'          => new sfWidgetFormInput(),
      'created_at'            => new sfWidgetFormDateTime(),
      'updated_at'            => new sfWidgetFormDateTime(),
    ));

    $this->setValidators(array(
      'id'                    => new sfValidatorPropelChoice(array('model' => 'User', 'column' => 'id', 'required' => false)),
      'name'                  => new sfValidatorString(array('max_length' => 255, 'required' => false)),
      'lypo_signature'        => new sfValidatorString(array('max_length' => 255, 'required' => false)),
      'thumbnail_url'         => new sfValidatorString(array('max_length' => 255, 'required' => false)),
      'city'                  => new sfValidatorString(array('max_length' => 64, 'required' => false)),
      'country'               => new sfValidatorString(array('max_length' => 64, 'required' => false)),
      'gender'                => new sfValidatorString(array('max_length' => 1, 'required' => false)),
      'age'                   => new sfValidatorInteger(array('required' => false)),
      'keywords'              => new sfValidatorString(array('required' => false)),
      'origin'                => new sfValidatorString(array('max_length' => 128, 'required' => false)),
      'enemy'                 => new sfValidatorString(array('max_length' => 128, 'required' => false)),
      'occupation'            => new sfValidatorString(array('max_length' => 128, 'required' => false)),
      'cached_statement_text' => new sfValidatorString(array('required' => false)),
      'cached_reaction_text'  => new sfValidatorString(array('required' => false)),
      'cached_statement_id'   => new sfValidatorInteger(array('required' => false)),
      'num_respects'          => new sfValidatorInteger(array('required' => false)),
      'created_at'            => new sfValidatorDateTime(array('required' => false)),
      'updated_at'            => new sfValidatorDateTime(array('required' => false)),
    ));

    $this->widgetSchema->setNameFormat('user[%s]');

    $this->errorSchema = new sfValidatorErrorSchema($this->validatorSchema);

    parent::setup();
  }

  public function getModelName()
  {
    return 'User';
  }


}
